import App from '../App'

import Index from '../page/teacher/Index'
import AContent from '../page/teacher/AContent'
import CallStudent from '../page/teacher/CallStudent'
import BContent from '../page/teacher/BContent'
import ReRecord from '../page/teacher/ReRecord'
import AdminIndex from '../page/admin/AdminIndex'
import Statistics from '../page/admin/Statistics'
import See from '../page/admin/See'

export default
[
    {
      path: '/',
      component: App,
      children:
      [
        {
          path: '/admin',
          component: AdminIndex,
          children:
          [
            {
              path: '/admin/statistics',
              component: Statistics
            },
            {
              path: '/admin/see',
              component: See
            }
          ]
        },
        {
          path: '/teacher',
          component: Index,
          children: [
            {
              path: '/teacher/AContent',
              component: AContent,
              children: [
                {
                  path: '/teacher/AContent/CallStudent',
                  component: CallStudent
                }
              ]
            },
            {
              path: '/teacher/BContent',
              component: BContent,
              children: [
                {
                  path: '/teacher/BContent/ReRecord',
                  component: ReRecord
                }
              ]
            }
          ]
        },
        {
          path: '',
          redirect: '/teacher'
        }
      ]
    }
]
